package com.gulimall.order.web;

import com.gulimall.order.service.OrderService;
import com.gulimall.order.vo.ConfirmVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * @author WZH
 * @title: OrderContriller
 * @projectName gulimall-java
 * @description:
 * @date 2022/2/9
 */
@Controller
public class OrderControllerTwo {
    @Autowired
    private OrderService orderService;

    @GetMapping(value={"/","confirm.html"})
    public String confirm(Model model){
        ConfirmVo confirm =orderService.getConfirm();
        model.addAttribute("confirm",confirm);
        return "confirm";
    }

    @GetMapping(value={"/list.html"})
    public String list(){
        return "list";
    }

    @GetMapping(value={"/pay.html"})
    public String pay(){
        return "pay";
    }

    @GetMapping(value={"/wait.html"})
    public String waitOrder(){
        return "wait";
    }




}
